package com.xjve.framework.hibernate.jpa;

import java.util.List;

/**
 * 查询上下文，包含生成的HQL和字段元数据
 */
public class QueryContext {
    private final String hql;
    private final List<SearchFieldMetadata> fieldMetadataList;

    public QueryContext(String hql, List<SearchFieldMetadata> fieldMetadataList) {
        this.hql = hql;
        this.fieldMetadataList = fieldMetadataList;
    }

    public String getHql() {
        return hql;
    }

    public List<SearchFieldMetadata> getFieldMetadataList() {
        return fieldMetadataList;
    }
}
